package com.liao.r2dbc.pojo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

@Data
@AllArgsConstructor
@NoArgsConstructor
//同名映射策略
@Table("user")
public class TbUser {

    @Id
    @Column(value = "id")
    private Integer id;
    private String username;
    private String password;

}
